<?php

class Model_Teacher extends \Orm\Model 
{
    protected static $_properties = array(
        'id',
        'name',
        'slug',
        'birthday',
        'address',
        'mobiphone',
        'description',
        'information',
        'skype',
        'yahoo', 
        'email',
        'avatar',
        'created_at',
        'updated_at',
    );
    
    public static $_observers = array(
        'Orm\Observer_CreatedAt' => array(
            'events' => array('before_insert'),
            'mysql_timestamp' => false,
        ),
        'Orm\Observer_UpdatedAt' => array(
            'events' => array('before_update'),
            'mysql_timestamp' => false,
        ),
    );
    
    protected static $_table_name = 'teacher';
    
    
}
